<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS的盒模型属性-width和height</title>
    <style>
        div{
            width: 400px;
            height: 400px;
            background-color: pink;
        }
        p{
            height: 50%;
            background-color: green;
        }
    </style>
</head>
<body>
    <div>
        <p>我是p标签内部的文字</p>
    </div>
</body>
</html>